var p = window.opener.document.getElementById("status-bar");
p.addEventListener('mouseout', closeWindow, true);

function closeWindow() {
	window.close();
}